package com.mingqijia.gassafety.db.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mingqijia.gassafety.db.entity.annotation.OperateLogFiled;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author mby
 * @since 2024-01-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_consumer_service_info")
@ApiModel(value="CustomerServiceInfo对象", description="")
public class ConsumerServiceInfo extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "客户id")
    @TableField("consumer_id")
    private Integer consumerId;

    @ApiModelProperty(value = "所属行业")
    @TableField("industry_type")
    private String industryType;

    @ApiModelProperty(value = "设备号")
    @TableField("imei")
    private String imei;

    @OperateLogFiled(name = "服务信息")
    @ApiModelProperty(value = "服务信息")
    @TableField("service_info")
    private String serviceInfo;

    @OperateLogFiled(name = "服务开始时间", pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "服务开始时间")
    @TableField("start_date")
    private Date startDate;

    @OperateLogFiled(name = "服务结束时间", pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "服务结束时间")
    @TableField("end_date")
    private Date endDate;

    @OperateLogFiled(name = "备注")
    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "服务日期是否可编辑 0-可编辑 1-不可编辑")
    @TableField("is_update")
    private Integer isUpdate;

    @ApiModelProperty(value = "服务到期提醒是否可发送 0-可发送 1-不可发送")
    @TableField("is_send")
    private Integer isSend;

}
